﻿@page "/workflow/designer/list"
@using ERP.Abp.AntDesignUI
@using Volo.Abp.UI.Navigation
@using AntDesign
 @using AntDesign.ProLayout
 @inherits AbpCrudPageBase<IDefinitionAppService, DefinitionDto,Guid, GetDefinitionInput, DefinitionCreateDto,DefinitionUpdateDto>
@inject IDefinitionAppService?  _definitionAppService 
     
     <GridContent>
    <AntDesign.Card  >
         <AdminTable   TItem="DefinitionDto"  Columns="DefinitionTableColumns"  OnChange="OnDataGridReadAsync"  RemoteDataSource="true"  DataSource="@Entities"  Total="@TotalCount"  PageSize="@PageSize"  PageIndex= "@CurrentPage"   Loading="@Loading" >
            <SearchTemplate>
                  <AntDesign.Form  Model="GetListInput" TModel="GetDefinitionInput" Name="advanced_search" Class="ant-advanced-search-form">
                    <AntDesign.Row Gutter="24">
                            <AntDesign.GridCol Span="8"  >
                                <FormItem Label="@(L["WorkflowName"])" >
                                  <AntDesign.Input @bind-Value="@(context.Filter)" OnPressEnter="SearchEntitiesAsync" OnFocus="SearchEntitiesAsync" Placeholder="placeholder" /> 
                                </FormItem>
                            </AntDesign.GridCol>
                    </AntDesign.Row>
                </AntDesign.Form>
            </SearchTemplate>
            <ToolbarRightButtonTemplate  >
                    <AntDesign.ButtonGroup>
                         <AntDesign.Button Icon="@IconType.Outline.Plus" Type="primary" OnClick="OpenCreateModalAsync" >@L["WorkflowDesign"]</AntDesign.Button>
                        <AntDesign.Button Icon="@IconType.Outline.Search" Type="primary" OnClick=" SearchEntitiesAsync" >@L["Search"]</AntDesign.Button>
                     </AntDesign.ButtonGroup>
            </ToolbarRightButtonTemplate>
        </AdminTable>
    </AntDesign.Card>
</GridContent>


